﻿namespace Vin.Extension.JwtBearer.Attributes;

[AttributeUsage(AttributeTargets.Property)]
public class VinJwtClaimTypeAttribute : Attribute
{
    /// <summary>
    /// 名称
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    /// 是否是对象
    /// </summary>
    public bool IsObject { get; set; } = false;

    /// <summary>
    /// 是否加入到jwt中
    /// </summary>
    public bool JoinInJwt { get; set; } = false;

    public VinJwtClaimTypeAttribute(string name)
    {
        this.Name = name;
    }
}